package com.example.pojo;

import lombok.Data;

@Data
public class ArticleQueryParam {
    private Integer page = 1; // 默认页码为1
    private Integer pageSize = 10; // 默认每页显示10条记录
    private String title; // 文章标题，用于模糊查询
    private String author; // 文章作者，用于精确查询
    private Integer categoryId; // 文章分类ID，用于精确查询

    // getter和setter方法
    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }
}